bors [Tue, 26 Jan 2016 17:53:26 +0000 (17:53 +0000)]
Auto merge of #2321 - JanLikar:private-crate, r=alexcrichton
I Accidentally closed #2218, this is the new PR.
[Fix #2202]
Jan Likar [Sat, 23 Jan 2016 21:16:30 +0000 (22:16 +0100)]
Add field `publish` to Cargo.toml
Field `publish` set to false can be used to prevent a
package from being accidentally published.
bors [Mon, 25 Jan 2016 21:50:36 +0000 (21:50 +0000)]
Auto merge of #2319 - alexcrichton:compat-12, r=brson
There hasn't actually ever been a request to maintain compatibility with older
stable Rust versions, and it's becoming a bit of a maintenance burden, so just
switch CI to run on stable Rust.
Alex Crichton [Mon, 25 Jan 2016 20:52:23 +0000 (12:52 -0800)]
Remove 1.2.0 from .travis.yml
There hasn't actually ever been a request to maintain compatibility with older
stable Rust versions, and it's becoming a bit of a maintenance burden, so just
switch CI to run on stable Rust.
bors [Mon, 25 Jan 2016 19:06:18 +0000 (19:06 +0000)]
Auto merge of #2317 - alexcrichton:install-current-crate, r=alexcrichton
Rolling together https://github.com/rust-lang/cargo/pull/2205 and https://github.com/rust-lang/cargo/pull/2240
bors [Mon, 25 Jan 2016 18:53:17 +0000 (18:53 +0000)]
Auto merge of #2316 - alexcrichton:update, r=alexcrichton
A few small tweaks to tests were necessary to accomodate rust-lang/rust#29520,
and a few changes were made to the code to account for that as well.
Alex Crichton [Mon, 25 Jan 2016 18:20:23 +0000 (10:20 -0800)]
Upgrade Rust to build Cargo
A few small tweaks to tests were necessary to accomodate rust-lang/rust#29520,
and a few changes were made to the code to account for that as well.
Alex Crichton [Mon, 25 Jan 2016 18:41:44 +0000 (10:41 -0800)]
Be sure the 'is not a crate root' message shows up
Alex Crichton [Mon, 25 Jan 2016 18:26:47 +0000 (10:26 -0800)]
Merge branch 'master' of https://github.com/JIghtuse/cargo into install-current-crate
Alex Crichton [Mon, 25 Jan 2016 18:26:34 +0000 (10:26 -0800)]
Merge branch 'quick-install' of https://github.com/thirtythreeforty/cargo into install-current-crate
bors [Mon, 25 Jan 2016 17:56:00 +0000 (17:56 +0000)]
Auto merge of #2196 - matklad:metadata2, r=alexcrichton
Most of the work was done by @dan-t in #1225 and by @winger in #1434
Fixes #2193
I failed to properly rebase previous attempts so I just salvaged this from bits and pieces.
@alexcrichton are you sure that the default format should be TOML? I think that TOML is more suitable for humans, and JSON is better (at the moment at least) for tools. Maybe we should default to ~~TOML~~ JSON?
bors [Mon, 25 Jan 2016 17:34:19 +0000 (17:34 +0000)]
Auto merge of #2297 - alexcrichton:update, r=alexcrichton
Just a routine for niche bug fixes, linkage errors, perf improvements, etc.
Closes #2295
Alex Crichton [Wed, 20 Jan 2016 17:07:47 +0000 (09:07 -0800)]
Update dependencies and Rust version
Just a routine for niche bug fixes, linkage errors, perf improvements, etc.
Aleksey Kladov [Sun, 24 Jan 2016 21:16:33 +0000 (00:16 +0300)]
metadata: use existing infra for JSON output
Aleksey Kladov [Sat, 23 Jan 2016 11:54:35 +0000 (14:54 +0300)]
metadata: add version to format
Aleksey Kladov [Thu, 14 Jan 2016 23:47:58 +0000 (02:47 +0300)]
metadata: simplify
Aleksey Kladov [Mon, 21 Dec 2015 15:05:26 +0000 (18:05 +0300)]
metadata: serialize Resolve
Aleksey Kladov [Sat, 5 Dec 2015 00:22:54 +0000 (03:22 +0300)]
Introduce cargo metadata subcommand
Most of the work was done by @dan-t in #1225 and by @winger in #1434
Fixes #2193
bors [Sun, 24 Jan 2016 18:42:32 +0000 (18:42 +0000)]
Auto merge of #2081 - vi:cargo_init, r=alexcrichton
Implement `cargo init` command and appropriate tests ( #21).
Features:
* Working like `cargo new` if there are no files in current directory
* Auto-detection of `--bin`
* Auto-detection of already existing VSC and appending to respecive ignore file
* Appending of appropriate `[lib]` or `[[bin]]` section to `Cargo.toml` in case of some non-standard source locations
Concerns:
* I'm not experienced in Rust + lazy => code looks poorer compared to the rest Cargo code
* The test don't cover 100% of functions
* Project consisting of both binary and library is not handled
* Many deviations from [previously proposed algorithm](https://github.com/rust-lang/cargo/pull/2008#issuecomment-
145607870)
Vitaly _Vi Shukela [Sat, 23 Jan 2016 12:48:59 +0000 (15:48 +0300)]
Implement "cargo init"
When non-existing directory is provided as argument, it
works just like "cargo new".
When existing directory is used, it may also create template
source file like "cargo new" or may find and use existing
source code for Cargo.toml.
Squashed commit of the following:
cargo init: Supply USER envvar for one test
cargo init: Other message when Cargo.toml already exists
cargo init: Resolve conflict after with #2257
fix minor issues
cargo new/init: Simplify error handling code in entry points
cargo new/init: Better message for invalid characters in name
cargo init: fix minor issues in test
cargo init: Avoid excessive builds in the test
cargo init: minor fixes
cargo init: Skip no_filename test on Windows
cargo init: Implement better error message for bin name clash
cargo init: minor fixes
cargo init: handle "/" path
cargo init: Actualise
cargo new: Fix upper case error message in test
cargo init: Remove paths::{file,directory}_already_exists
fix uppper-case error messages
cargo init: Fix minor issues per diff comments
cargo init: Change binary handling
cargo init: Move multiple lib error detection away from mk
cargo init: Support optional path argument
cargo init: Fix minor issues per Github comments
cargo init: Fix complaint from tests/check-style.sh
cargo init: Handle projects with multiple mains
cargo init: Major refactor, multi-target projects
cargo init: Add Cargo.lock unconditionally
cargo init: Fix complains from tests/check-style.sh
cargo init: Tests for handling VCS
cargo init: Handle VCS
cargo init: work in progress
cargo init: Deduplicate some things between new and init
cargo init: Auto-detection of --bin
cargo init: work in progress...
cargo init: Fix tests and allow explicit --vcs
cargo init: intermediate refactor
cargo init: First sketch of implementation
cargo init: Preliminary test
cargo init: first stub
See
https://github.com/vi/cargo/tree/cargo_init_unsquashed
for individual commits
bors [Sat, 23 Jan 2016 00:21:03 +0000 (00:21 +0000)]
Auto merge of #2307 - alexcrichton:readme, r=brson
Running `cargo build` should work just fine to build cargo as well as not
running the python script to download rustc itself. Now that Cargo runs on
stable (and a pretty old stable) most Rust installations should "Just Work" to
build Cargo.
Alex Crichton [Sat, 23 Jan 2016 00:09:17 +0000 (16:09 -0800)]
Add more info to README about compiling
Running `cargo build` should work just fine to build cargo as well as not
running the python script to download rustc itself. Now that Cargo runs on
stable (and a pretty old stable) most Rust installations should "Just Work" to
build Cargo.
Brian Anderson [Thu, 21 Jan 2016 21:50:01 +0000 (13:50 -0800)]
Merge pull request #2303 from alexcrichton/bump
Bump to 0.9.0
Alex Crichton [Thu, 21 Jan 2016 21:47:11 +0000 (13:47 -0800)]
Bump to 0.9.0
bors [Thu, 21 Jan 2016 00:24:30 +0000 (00:24 +0000)]
Auto merge of #2299 - retep998:staticlib-naming-fiasco, r=alexcrichton
Required for https://github.com/rust-lang/rust/pull/29520
r? @alexcrichton
Peter Atashian [Wed, 20 Jan 2016 20:59:11 +0000 (15:59 -0500)]
Support static libraries with names other than libfoo.a
Required for https://github.com/rust-lang/rust/pull/29520
Signed-off-by: Peter Atashian <retep998@gmail.com>
bors [Wed, 20 Jan 2016 19:41:06 +0000 (19:41 +0000)]
Auto merge of #2296 - alexcrichton:wow-thats-a-bad-bug, r=brson
There was a previous bug where if any crate's name was the start of the crate
being updated that the crate wouldn't resolve at all, and this fixes the prefix
checking error bug.
cc #2293
bors [Wed, 20 Jan 2016 17:36:59 +0000 (17:36 +0000)]
Auto merge of #2270 - felixc:warn-on-empty-dep, r=alexcrichton
This warns when encountering dependencies of either of these forms:
```
[dependencies]
foo = {}
```
and
```
[dependencies.foo]
```
(with nothing further provided).
In the future, this should likely become a hard error.
Related to #2147
Felix Crux [Mon, 11 Jan 2016 16:08:20 +0000 (11:08 -0500)]
Emit a warning when manifest specifies empty dependency constraints
This warns when encountering dependencies of either of these forms:
[dependencies]
foo = {}
and
[dependencies.foo]
(with nothing further provided).
In the future, this should likely become a hard error.
bors [Tue, 19 Jan 2016 23:05:06 +0000 (23:05 +0000)]
Auto merge of #2282 - mcarton:clippy, r=alexcrichton
For information, here is the [log before and after](https://gist.github.com/mcarton/
684c030321c4c60d6bc9) with Clippy.
Remaining warnings from Clippy are mostly false positive or `str` to `string` conversion (too many of them for this PR).
```
warnings before:
cmp_owned : 2
cyclomatic_complexity : 1
deprecated : 11
explicit_iter_loop : 57
identity_op : 3
len_without_is_empty : 3
len_zero : 20
let_and_return : 3
map_clone : 14
needless_lifetimes : 4
needless_return : 24
ok_expect : 2
option_map_unwrap_or : 10
private_in_public : 28
redundant_closure : 2
should_implement_trait : 2
single_match : 3
str_to_string : 112
string_to_string : 12
type_complexity : 3
unnecessary_mut_passed : 2
unneeded_field_pattern : 3
unused_lifetimes : 1
unused_variables : 2
while_let_loop : 2
warnings after:
cmp_owned : 2
cyclomatic_complexity : 1
identity_op : 1
let_and_return : 3
map_clone : 1
needless_return : 3
ok_expect : 2
option_map_unwrap_or : 1
private_in_public : 28
should_implement_trait : 2
str_to_string : 80
type_complexity : 3
while_let_loop : 2
```
Alex Crichton [Tue, 19 Jan 2016 20:06:58 +0000 (12:06 -0800)]
Fix update --precise with the registry source
There was a previous bug where if any crate's name was the start of the crate
being updated that the crate wouldn't resolve at all, and this fixes the prefix
checking error bug.
cc #2293
bors [Sun, 17 Jan 2016 01:33:10 +0000 (01:33 +0000)]
Auto merge of #2285 - sfackler:revert-wildcard-warning, r=alexcrichton
The crates.io change is going through, so we don't want this warning
around after it lands.
r? @alexcrichton
This would perferrably make it into the Cargo that's shipping with 1.6.
bors [Sun, 17 Jan 2016 00:56:58 +0000 (00:56 +0000)]
Auto merge of #2287 - alexcrichton:openbsd, r=alexcrichton
cc @semarie
Alex Crichton [Sun, 17 Jan 2016 00:56:31 +0000 (16:56 -0800)]
Register an OpenBSD snapshot
Steven Fackler [Sat, 16 Jan 2016 22:30:09 +0000 (14:30 -0800)]
Drop wildcard crates.io warning
The crates.io change is going through, so we don't want this warning
around after it lands.
mcarton [Fri, 15 Jan 2016 16:50:46 +0000 (17:50 +0100)]
Use .cloned() where appropriate
Fix most of Clippy’s map_clone warnings.
mcarton [Fri, 15 Jan 2016 16:35:22 +0000 (17:35 +0100)]
Remove some useless String::to_string calls
Fix some Clippy’s string_to_string warnings.
mcarton [Fri, 15 Jan 2016 15:36:09 +0000 (16:36 +0100)]
Remove unnecessary mut
Fix all of Clippy’s unnecessary_mut_passed warnings.
mcarton [Fri, 15 Jan 2016 15:01:31 +0000 (16:01 +0100)]
Replace single matches by ifs
Fix all Clippy’s single_match warnings.
mcarton [Fri, 15 Jan 2016 14:51:27 +0000 (15:51 +0100)]
Remove redundant closure
Fix all Clippy’s redundant_closure warnings.
mcarton [Fri, 15 Jan 2016 14:51:28 +0000 (15:51 +0100)]
Use .is_empty() where appropriate
Fix all of Clippy’s len_zero warnings.
mcarton [Fri, 15 Jan 2016 14:51:26 +0000 (15:51 +0100)]
Add an is_empty method to types with a len one
Fix all Clippy’s len_without_is_empty warnings.
mcarton [Fri, 15 Jan 2016 14:51:25 +0000 (15:51 +0100)]
Remove useless returns
Fix most of Clippy’s needless_return warnings. Remaining cases are
false positives.
mcarton [Fri, 15 Jan 2016 14:51:23 +0000 (15:51 +0100)]
Remove useless lifetimes
Fix all Clippy’s needless_lifetimes warnings.
bors [Fri, 15 Jan 2016 21:36:03 +0000 (21:36 +0000)]
Auto merge of #2281 - rillian:doc-nocapture, r=alexcrichton
Although this is a feature of rustc's test harness and
not cargo's test driver, I can never remember how to
invoke it. Describing the switch in `cargo test --help`
makes it more discoverable.
Ralph Giles [Fri, 15 Jan 2016 16:59:55 +0000 (08:59 -0800)]
Document --nocapture to reduce confusion running tests.
Although this is a feature of rustc's test harness and
not cargo's test driver, I can never remember how to
invoke it. Describing the switch in `cargo test --help`
makes it more discoverable.
bors [Fri, 15 Jan 2016 00:40:34 +0000 (00:40 +0000)]
Auto merge of #2279 - alexcrichton:rerun-if-changed-rust-file, r=brson
There was a failure mode of the handling of the rerun-if-changed directive where
it would rerun the build script twice before hitting a steady state of actually
processing the directives. The order of events that led to this were:
1. A project was built from a clean directory. Cargo recorded a fingerprint
indicating this (for the build script), but the fingerprint indicated that
the build script was a normal build script (no manually specified inputs)
because Cargo had no prior knowledge.
2. A project was then rebuilt from the same directory. Cargo's new fingerprint
for the build script now indicates that there is a custom list of
dependencies, but the previous fingerprint indicates there wasn't, so the
mismatch causes another rebuild.
3. All future rebuilds will agree that there are custom lists both before and
after, so the directives are processed as one would expect.
This commit does a bit of refactoring in the fingerprint module to fix this
situation. The recorded fingerprint in step (1) is now recorded as a "custom
dependencies are specified" fingerprint if, after the build script is run,
custom dependencies were specified.
Closes #2267
Alex Crichton [Wed, 13 Jan 2016 01:37:57 +0000 (17:37 -0800)]
Handle rerun-if-changed directives in dependencies
There was a failure mode of the handling of the rerun-if-changed directive where
it would rerun the build script twice before hitting a steady state of actually
processing the directives. The order of events that led to this were:
1. A project was built from a clean directory. Cargo recorded a fingerprint
indicating this (for the build script), but the fingerprint indicated that
the build script was a normal build script (no manually specified inputs)
because Cargo had no prior knowledge.
2. A project was then rebuilt from the same directory. Cargo's new fingerprint
for the build script now indicates that there is a custom list of
dependencies, but the previous fingerprint indicates there wasn't, so the
mismatch causes another rebuild.
3. All future rebuilds will agree that there are custom lists both before and
after, so the directives are processed as one would expect.
This commit does a bit of refactoring in the fingerprint module to fix this
situation. The recorded fingerprint in step (1) is now recorded as a "custom
dependencies are specified" fingerprint if, after the build script is run,
custom dependencies were specified.
Closes #2267
bors [Tue, 12 Jan 2016 18:48:03 +0000 (18:48 +0000)]
Auto merge of #2276 - alexcrichton:fix-nightly, r=alexcrichton
Just some tweaks to compiler error messages
bors [Tue, 12 Jan 2016 17:50:34 +0000 (17:50 +0000)]
Auto merge of #2228 - tbu-:pr_only_missing, r=alexcrichton
Alex Crichton [Tue, 12 Jan 2016 17:47:31 +0000 (09:47 -0800)]
Fix tests on nightly
bors [Tue, 12 Jan 2016 17:18:05 +0000 (17:18 +0000)]
Auto merge of #2269 - felixc:package-untracked-files, r=alexcrichton
The logic in `sources/path.rs` that finds files that are untracked by the version control system was incorrectly including files that *are* tracked, but had been modified without the modification being committed to Git.
This manifested itself as strange duplications of files (e.g. in `cargo package --list`), since they were listed once as tracked files, and once more as allegedly "untracked" ones. It also caused failures when trying to package the crate when files had been deleted, but the deletion was not yet committed to Git.
Fixes #2199
Felix Crux [Sun, 10 Jan 2016 19:47:02 +0000 (14:47 -0500)]
Fix listing of untracked files to not include tracked but modified ones
The logic in `sources/path.rs` that finds files that are untracked by the
version control system was incorrectly including files that *are* tracked,
but had been modified without the modification being committed to Git.
This manifested itself as strange duplications of files (e.g. in `cargo
package --list`), since they were listed once as tracked files, and once
more as allegedly "untracked" ones. It also caused failures when trying to
package the crate when files had been deleted, but the deletion was not
yet committed to Git.
Fixes #2199
Felix Crux [Tue, 12 Jan 2016 00:00:05 +0000 (19:00 -0500)]
Bump rand to 0.3.13
bors [Mon, 11 Jan 2016 22:44:56 +0000 (22:44 +0000)]
Auto merge of #2265 - dirk:dirk/include-publish-command-in-help, r=alexcrichton
This is pretty commonly-used command, so I think it merits inclusion in the help text.
bors [Mon, 11 Jan 2016 18:15:34 +0000 (18:15 +0000)]
Auto merge of #2257 - nrc:lib-template, r=alexcrichton
Tobias Bucher [Fri, 18 Dec 2015 12:27:08 +0000 (12:27 +0000)]
Only treat missing crate lists as empty
The motivation is that errors other than "file not found" could lead to
the file being overwritten by an empty config, e.g. if the `open` call
is interrupted and returns `EINTR`, then this code would read an empty
config and write it back later on. This can probably happen for other
errors as well (`ENFILE`, ...).
Dirk Gadsden [Fri, 8 Jan 2016 22:40:02 +0000 (14:40 -0800)]
Add publish command to list of commands in help text
Brian Anderson [Wed, 6 Jan 2016 18:40:33 +0000 (10:40 -0800)]
Merge pull request #2260 from durka/patch-4
doc/manifest: add `cargo run --example`
Brian Anderson [Wed, 6 Jan 2016 18:37:54 +0000 (10:37 -0800)]
Merge pull request #2243 from felixc/zsh-completion-options
Complete the definition of all options for zsh auto-completion
Alex Burka [Sun, 3 Jan 2016 02:04:17 +0000 (21:04 -0500)]
doc/manifest: add `cargo run --example`
Closes #2251. Should it be mentioned anywhere else as well?
Nick Cameron [Thu, 31 Dec 2015 03:12:56 +0000 (16:12 +1300)]
Tweak the new project template to be more idiomatic.
Felix Crux [Wed, 23 Dec 2015 03:57:03 +0000 (22:57 -0500)]
Complete the definition of all options for zsh auto-completion
All commands can now auto-complete all of the options they support.
bors [Mon, 21 Dec 2015 16:09:43 +0000 (16:09 +0000)]
Auto merge of #2237 - sfackler:libc-0.2, r=alexcrichton
Also update everything else which removes all remaining libc 0.1
dependencies
Steven Fackler [Mon, 21 Dec 2015 04:47:04 +0000 (21:47 -0700)]
Fix windows
Steven Fackler [Sun, 20 Dec 2015 23:15:18 +0000 (16:15 -0700)]
Whitelist improper ctypes to support old rustc versions
Steven Fackler [Sun, 20 Dec 2015 22:58:55 +0000 (15:58 -0700)]
Bump libc to 0.2
Also update everything else which removes all remaining libc 0.1
dependencies
bors [Sun, 20 Dec 2015 06:22:11 +0000 (06:22 +0000)]
Auto merge of #2225 - sgrif:sg-doctest-link-args, r=alexcrichton
It is entirely possible for a crate to have a build script that is simply
the equivalent to
```rustc
fn main() {
println!("cargo:rustc-link-search=native=/some/path");
}
```
Without actually giving anything to link (for example, because the code
contains `#[link(name="foo")]`. In this case, we aren't actually passing
`-L` through when running doctests, even though they're passed when
compiling the main crate.
Fixes #1592
Sean Griffin [Sat, 19 Dec 2015 19:44:34 +0000 (12:44 -0700)]
Remove needless dylib check, add test
In this case the dylib check isn't actually doing anything useful, as
we're just appending search paths. Also adds a test for
8c65284b44337c6cfc003cedc8996e241ac678bd
bors [Sat, 19 Dec 2015 18:29:47 +0000 (18:29 +0000)]
Auto merge of #2233 - gentoo90:bash-comp, r=alexcrichton
bors [Sat, 19 Dec 2015 18:09:48 +0000 (18:09 +0000)]
Auto merge of #2235 - felixc:zsh-completion, r=alexcrichton
Adds missing rustc, rustdoc, search, and uninstall subcommands.
Removes obsolete config-for-key and config-list subcommands that don't exist anymore.
Felix Crux [Sat, 19 Dec 2015 00:11:32 +0000 (19:11 -0500)]
Add missing subcommands to zsh auto-completion
Specifically, rustc, rustdoc, search, and uninstall.
Felix Crux [Sat, 19 Dec 2015 00:01:55 +0000 (19:01 -0500)]
Remove obsolete commands from zsh auto-completion
The config-for-key and config-list subcommands don't exist.
gentoo90 [Sat, 19 Dec 2015 11:12:39 +0000 (13:12 +0200)]
Bashcomp: complete --bin, --bench and --test
bors [Sat, 19 Dec 2015 03:34:56 +0000 (03:34 +0000)]
Auto merge of #2232 - alexcrichton:unused, r=huonw
This includes alexcrichton/toml-rs@
39d77b6d which ensures that more unused
fields stick around when decoding TOML, allowing this to:
Closes #2230
bors [Sat, 19 Dec 2015 00:45:54 +0000 (00:45 +0000)]
Auto merge of #2231 - felixc:docstrings-for-all, r=alexcrichton
Almost all commands have info on what they are for, but a few were
missing it.
Also cleans up some copy/paste misdocumentation along the way.
Alex Crichton [Sat, 19 Dec 2015 00:33:17 +0000 (16:33 -0800)]
Update toml dependency to catch more unused keys
This includes alexcrichton/toml-rs@
39d77b6d which ensures that more unused
fields stick around when decoding TOML, allowing this to:
Closes #2230
Felix Crux [Fri, 18 Dec 2015 23:54:40 +0000 (18:54 -0500)]
Ensure all subcommands have summary description documentation
Almost all commands have info on what they are for, but a few were
missing it.
Also cleans up some copy/paste misdocumentation along the way.
bors [Fri, 18 Dec 2015 20:40:35 +0000 (20:40 +0000)]
Auto merge of #2226 - tshepang:unused, r=alexcrichton
bors [Fri, 18 Dec 2015 18:57:51 +0000 (18:57 +0000)]
Auto merge of #2224 - alexcrichton:rustc-dev, r=brson
This should allow compiling the specified target in the various profiles that
are available to it, e.g. bench or test in addition to the standard
dev.
Closes #2120
bors [Fri, 18 Dec 2015 18:43:14 +0000 (18:43 +0000)]
Auto merge of #2223 - alexcrichton:better-dev-experience, r=brson
Each test wants to be sure to reset HOME and remove CARGO_HOME from the
environment, but this was done inconsistently throughout the test suite. This
commit consolidates process creation so there's only one point for creating a
process ready to execute the Cargo that's being tested.
bors [Fri, 18 Dec 2015 17:38:01 +0000 (17:38 +0000)]
Auto merge of #2227 - tbu-:pr_pycache, r=alexcrichton
Running `make` creates the `src/etc/__pycache__` directory which should
not be checked in.
Tobias Bucher [Fri, 18 Dec 2015 12:28:08 +0000 (12:28 +0000)]
Add __pycache__ to .gitignore
Running `make` creates the `src/etc/__pycache__` directory which should
not be checked in.
Tshepang Lekhonkhobe [Fri, 18 Dec 2015 10:51:05 +0000 (12:51 +0200)]
remove unused imports
bors [Thu, 17 Dec 2015 23:08:10 +0000 (23:08 +0000)]
Auto merge of #2219 - matklad:encodable-audit, r=alexcrichton
@alexcrichton another preparation PR for #2196
I've removed obscure `metadata` field from `Target`. It is a breaking change (for read-manifest), but the field seemed cryptic, useless and untested :)
`Target` has a bunch of boolean fields:
```
tested: bool,
benched: bool,
doc: bool,
doctest: bool,
harness: bool, // whether to use the test harness (--test)
for_host: bool,
```
I guess they should not be included in serialized representation?
I will push commits for other `Encodable`s here.
Aleksey Kladov [Thu, 17 Dec 2015 18:50:11 +0000 (21:50 +0300)]
add more fields to SerializedDependency
Aleksey Kladov [Wed, 16 Dec 2015 22:04:19 +0000 (01:04 +0300)]
add more field to SerializedPackage
Sean Griffin [Thu, 17 Dec 2015 21:14:40 +0000 (14:14 -0700)]
Pass link search path to doctests even if build script gave no links
It is entirely possible for a crate to have a build script that is simply
the equivalent to
```rustc
fn main() {
println!("cargo:rustc-link-search=native=/some/path");
}
```
Without actually giving anything to link (for example, because the code
contains `#[link(name="foo")]`. In this case, we aren't actually passing
`-L` through when running doctests, even though they're passed when
compiling the main crate.
Fixes #1592
Alex Crichton [Thu, 17 Dec 2015 18:10:59 +0000 (10:10 -0800)]
Allow specifying profiles to `cargo rustc`
This should allow compiling the specified target in the various profiles that
are available to it, e.g. bench or test in addition to the standard
dev.
Closes #2120
Alex Crichton [Thu, 17 Dec 2015 17:53:14 +0000 (09:53 -0800)]
Consolidate creating processes in tests
Each test wants to be sure to reset HOME and remove CARGO_HOME from the
environment, but this was done inconsistently throughout the test suite. This
commit consolidates process creation so there's only one point for creating a
process ready to execute the Cargo that's being tested.
Boris Egorov [Thu, 17 Dec 2015 16:41:05 +0000 (22:41 +0600)]
tests: 'install' defaults to current directory
Complements #2205.
Fixes #2142.
Aleksey Kladov [Wed, 16 Dec 2015 21:31:27 +0000 (00:31 +0300)]
remove unused Encodable impl for Manifest
bors [Wed, 16 Dec 2015 21:14:02 +0000 (21:14 +0000)]
Auto merge of #2217 - alexcrichton:cleanup, r=alexcrichton
This From impl has been around for awhile.
Alex Crichton [Wed, 16 Dec 2015 21:11:26 +0000 (13:11 -0800)]
Use try! instead of CliError::from_boxed
This From impl has been around for awhile.
Aleksey Kladov [Wed, 16 Dec 2015 21:10:58 +0000 (00:10 +0300)]
refactor Target serialization
Remove obscure `metadata` field and implement proper Encodable for
TargetKind becase default one is not used.
bors [Wed, 16 Dec 2015 16:12:29 +0000 (16:12 +0000)]
Auto merge of #2215 - JIghtuse:master, r=alexcrichton
Fixes #2197
Boris Egorov [Wed, 16 Dec 2015 07:49:33 +0000 (13:49 +0600)]
etc: Fix error message about missing Cargo snapshot
Fixes #2197
bors [Wed, 16 Dec 2015 04:51:56 +0000 (04:51 +0000)]
Auto merge of #2208 - leodasvacas:clippy, r=alexcrichton
Changes suggested by clippy. Mostly replacing `to_string()` with alternatives.
leonardo.yvens [Sat, 12 Dec 2015 18:19:11 +0000 (16:19 -0200)]
clippy run
bors [Mon, 14 Dec 2015 18:37:03 +0000 (18:37 +0000)]
Auto merge of #2209 - felixc:master, r=alexcrichton